package homework0308;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class OOSDemo1 {
    public static void main(String[] args) throws IOException {
        String name="ck";
        int age=18;
        String address="上海";
        String[] otherInfo={"唱","跳","rap"};
        Student CK=new Student(name,age,address,otherInfo);
        System.out.println(CK);
        FileOutputStream fos=new FileOutputStream("student.rpg");
        ObjectOutputStream oos=new ObjectOutputStream(fos);
        oos.writeObject(CK);
        System.out.println("写出成功");
        oos.close();

    }
}
